//
//  GoodCellPresenter.h
//  GRFMDownloader_Example
//
//  Created by Guo Rui on 2018/1/12.
//  Copyright © 2018年 GR. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GroupBuyingBookModel.h"
@protocol GoodCellProtocol <NSObject>

- (void)updateAdImage:(NSString *)adImageUrl;
- (void)updateBookName:(NSString *)bookName;
- (void)startCountdownAt:(NSTimeInterval)startTime;
- (void)updatePayCount:(NSInteger)payCount;

@end

@protocol GoodCellPresneterProtocol <NSObject>

// 事件的传递
- (void)payButtonDidClick;

@end

@interface GoodCellPresenter : NSObject<GoodCellPresneterProtocol>

- (instancetype)initWithModel:(GroupBuyingBookModel *)model;
- (void)presentWithView:(UIView <GoodCellProtocol> *)view;
- (CGFloat)cellHeight;
@end
